package study.chat.demo3;

import javax.swing.*;
import java.awt.event.*;
import java.awt.*;

public class MainFrame extends JFrame {
    private JPanel contentPane;
    private JButton jbSend;
    private JTextArea textArea1;
    private JTable jTableOnlineUser;
    private JButton jbRefresh;
    private JCheckBox checkBox;


    public MainFrame() {
        setContentPane(contentPane);
        //setModal(true);
        getRootPane().setDefaultButton(jbSend);

// call onCancel() when cross is clicked
        setDefaultCloseOperation(EXIT_ON_CLOSE);
// call onCancel() on ESCAPE
        jbRefresh.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                //To change body of implemented methods use File | Settings | File Templates.
            }
        });

        this.setSize(400, 200);
        this.setMinimumSize(new Dimension(200,200));
    }
}
